
from page.home_page import HomePage
from page.login_page import Login
from page.peaple_manage_page.high_pressure_page import HighPressure
from page.peaple_manage_page.peaple_list_page import PeapleList
from page.peaple_manage_page.sugur_list_page import SugurList


class Page:

    def __init__(self, driver):
        self.driver = driver


    @property
    def login( self ):
        """登录"""
        return Login(self.driver)


    @property
    def home( self ):
        """首页"""
        return HomePage(self.driver)

    @property
    def peaple_manage(self):
        """居民列表"""
        return PeapleList(self.driver)

    @property
    def high_pressure(self):
        """高血压患者"""
        return HighPressure(self.driver)

    @property
    def sugur_list(self):
        """糖尿病"""
        return SugurList(self.driver)

